<template>
  <ul id="component_xxsj">
      <li v-for="(xss,xs_index) in xssList" :key="xs_index" class="component_xss_item">
        <span>{{xss.date}}</span>
        <span>{{xss.title}}</span>
        <span><button class="component_xss_item_delete" @click="deleteMes(xss.id)">删除</button></span>
      </li>
  </ul>
</template>

<script>

export default {
  data() {
    return {
      xssList:[
        {id:"",title:"让党心和民心贴得更紧——写在习近平总书记“2·19”重要讲话发表3周年之际",date:"02-22",url:""},
        {id:"",title:"跨越发展正当时（在习近平新时代中国特色社会主义思想指引下——新时代新作为新篇章）",date:"02-22",url:""},
        {id:"",title:"一线明察暗访 忠诚履职担当",date:"02-22",url:""},
        {id:"",title:"2019年小客车指标配额为10万",date:"02-22",url:""},
        {id:"",title:"非现场交通违法可扫码缴罚款",date:"02-22",url:""},
        {id:"",title:"让党心和民心贴得更紧",date:"02-22",url:""},
      ]
    }
  },
  methods: {
    deleteMes(id){

    }
  }
}
</script>
<style lang="scss" scoped>
#component_xxsj{
  display:block;
  padding:5px 20px;
  position: relative;
  width: 100%;
  li{
    line-height: 45px;
    padding-right: 0px;
    list-style: none;
    position: relative;
    width: 100%;
    height: 45px;
    display: flex;
    align-items: center;
    & > span{
      display: inline-block;
      color:#666666;
    }
    & > span:nth-child(1){
      width:62px;
      // font-size:12px;
      float:left;
      position:relative;
      color:#999999;
      &::before{
        content:"";
        position:absolute;
        width: 1px;
        height:15px;
        background-color:#bbbbbb;
        top:18px;
        right:10px;
      }
    }
    & > span:nth-child(2){
      text-overflow:ellipsis;
      overflow:hidden;
      white-space: nowrap;
      width:calc(100% - 140px);
      float:left;
    }
    & > span:nth-child(3){
      width:60px;
      margin-left: auto;
      button{
        width:100%;
        padding:5px 10px;
      }
    }
    .component_xss_item_delete{
      padding: 0px 8px !important;
      color: #46b3e8;
      border: 1px #46b3e8 solid;
      background: #ffffff;
      line-height: 20px;
      display: block;
      cursor: pointer;
      border-radius: 10px;
      font-size: 12px;
      &:hover{
        color: #ffffff;
        background: #46b3e8;
      }
      &:focus{
        outline:none;
      }
    }
  }
}

</style>
<style lang="scss" scoped>
</style>